/**
 * BillViewDetail.java
 * com.jamin.aabill.data
 *
 * Function： TODO 
 *
 *   ver     date      		author
 * ──────────────────────────────────
 *   		 2012-9-6 		wangjieming
 *
 * Copyright (c) 2012, TNT All Rights Reserved.
 */

package com.jamin.aabill.data;

import java.text.DecimalFormat;

import com.jamin.aabill.db.BillViewMetaData;

import android.database.Cursor;

/**
 * ClassName:BillViewDetail
 *
 * @author   wangjieming
 * @version  1.0
 * @since    v1.0
 * @Date	 2012-9-6 上午9:59:28 
 */
public class BillViewDetail {




	public BillViewDetail(Cursor cur){
		setCIRCLE_ID(cur.getLong(cur.getColumnIndex(BillViewMetaData.CIRCLE_ID)));
		setBILL_ID(cur.getLong(cur.getColumnIndex(BillViewMetaData.BILL_ID)));
		setCREATOR_MEMBER_ID(cur.getLong(cur.getColumnIndex(BillViewMetaData.CREATOR_MEMBER_ID)));
		setPROJECT(cur.getString(cur.getColumnIndex(BillViewMetaData.PROJECT)));
		setCIRCLE_MEMBER_NAME(cur.getString(cur.getColumnIndex(BillViewMetaData.CIRCLE_MEMBER_NAME)));
		setTYPE(cur.getInt(cur.getColumnIndex(BillViewMetaData.TYPE)));
		setDESCRIPTION(cur.getString(cur.getColumnIndex(BillViewMetaData.DESCRIPTION)));
		setMODIFY_AT(cur.getLong(cur.getColumnIndex(BillViewMetaData.MODIFY_AT)));
		setCREATE_AT(cur.getLong(cur.getColumnIndex(BillViewMetaData.CREATE_AT)));
		setCIRCLE_MEMBER_ID(cur.getLong(cur.getColumnIndex(BillViewMetaData.CIRCLE_MEMBER_ID)));
		DecimalFormat df = new DecimalFormat("0.000");
		setMONEY(Double.valueOf(df.format(cur.getDouble(cur.getColumnIndex(BillViewMetaData.MONEY)))));
	}


	private long CIRCLE_ID;
	private long BILL_ID;
	private long CREATOR_MEMBER_ID;
	private String PROJECT;
	private String CIRCLE_MEMBER_NAME;
	private int TYPE;
	private String DESCRIPTION;
	private long MODIFY_AT;
	private long CREATE_AT;
	private long CIRCLE_MEMBER_ID;
	private double MONEY;


	public long getCIRCLE_ID() {
		return CIRCLE_ID;
	}
	public void setCIRCLE_ID(long cIRCLE_ID) {
		CIRCLE_ID = cIRCLE_ID;
	}
	public long getBILL_ID() {
		return BILL_ID;
	}
	public void setBILL_ID(long bILL_ID) {
		BILL_ID = bILL_ID;
	}
	public long getCREATOR_MEMBER_ID() {
		return CREATOR_MEMBER_ID;
	}
	public void setCREATOR_MEMBER_ID(long cREATOR_MEMBER_ID) {
		CREATOR_MEMBER_ID = cREATOR_MEMBER_ID;
	}
	public String getPROJECT() {
		return PROJECT;
	}
	public String getCIRCLE_MEMBER_NAME() {
		return CIRCLE_MEMBER_NAME;
	}
	public void setCIRCLE_MEMBER_NAME(String cIRCLE_MEMBER_NAME) {
		CIRCLE_MEMBER_NAME = cIRCLE_MEMBER_NAME;
	}
	public void setPROJECT(String pROJECT) {
		PROJECT = pROJECT;
	}
	public int getTYPE() {
		return TYPE;
	}
	public void setTYPE(int tYPE) {
		TYPE = tYPE;
	}
	public String getDESCRIPTION() {
		return DESCRIPTION;
	}
	public void setDESCRIPTION(String dESCRIPTION) {
		DESCRIPTION = dESCRIPTION;
	}
	public long getMODIFY_AT() {
		return MODIFY_AT;
	}
	public void setMODIFY_AT(long mODIFY_AT) {
		MODIFY_AT = mODIFY_AT;
	}
	public long getCREATE_AT() {
		return CREATE_AT;
	}
	public void setCREATE_AT(long cREATE_AT) {
		CREATE_AT = cREATE_AT;
	}
	public long getCIRCLE_MEMBER_ID() {
		return CIRCLE_MEMBER_ID;
	}
	public void setCIRCLE_MEMBER_ID(long cIRCLE_MEMBER_ID) {
		CIRCLE_MEMBER_ID = cIRCLE_MEMBER_ID;
	}
	public double getMONEY() {
		return MONEY;
	}
	public void setMONEY(double mONEY) {
		MONEY = mONEY;
	}




}

